import multiprocessing
import time

def yudie(name,count):
    for i in range(1,count + 1):
        time.sleep(0.15)
        print(f"{name}正在吹第{i}遍《梦蝶》....")

def ziang(name,num):
    for i in range(1,num + 1):
        time.sleep(0.15)
        print(f"{name}正在吃第{i}个青团")

if __name__ == '__main__':
    p1 = multiprocessing.Process(target = yudie,args = ('雨蝶',9))  # 传入args参数
    p2 = multiprocessing.Process(target = ziang,kwargs = {'name' : '子昂','num' : 15}) # 传入kwargs参数
    p1.start()
    p2.start()